<#escape x as x?html>
<#include "/common/common.ftl" encoding="UTF-8">
<link type="text/css" rel="stylesheet" href="${staticUrl}/css/xtree.css" />
<script type="text/javascript" language="javascript1.2" src="${staticUrl}/js/xtree.js"></script>

<style type="text/css">
<!--
.style1 {color: #FF0000}
.input_button
{   CURSOR: default;
    COLOR: buttontext;
    FONT-SIZE:9pt;
    FONT-FAMILY:"宋体";
    BACKGROUND-COLOR: #f7f7f7;
    BORDER-STYLE:solid;
    BORDER-WIDTH:1px 1px 1px 1px;
    BORDER-COLOR:#b2b2b2;
/*	WIDTH:100%;	*/
}
body {
    background-color: buttonface;
	border: none;
	BACKGROUND-REPEAT: no-repeat;
	margin-top:8;
	margin-left:2;
	margin-right:5;
	margin-bottom:0;
}
.contentscell { 
    border: 1px solid rgb( 145, 155, 156 );
	background: rgb( 252, 252, 254 );  
	border-width: 0 1px 1px; 	
	padding: 3px;
}

-->
</style>

<script language="javascript1.2">
	var rootselected = false;
	var rds=new Array(); rds[0]='0';rds[1]='栏目列表';
	function exeSelectOpt(index){
			<!--单选-->
				var objTable = document.getElementById('tableData');
				for(var i = 1;i < objTable.rows.length-1;i++) document.getElementById("checkbox" + i).checked= false;
				document.getElementById("checkbox" + index).checked = true;
	}
	var rootdatas = "1;栏目列表;;;;;;;;;;;;;;;;;;;;;;;;;;;;;";
	function returnValue(){
		var openObject;
		if(parent != null)
			openObject = parent.opener;
		else
			openObject = opener;
		if(openObject == null)
			openObject = parent;
				<!--单选-->	
				if (atree.getSelected()) {
					var value = atree.getSelected().value;
					if(value == null)
						value = rootdatas;
					if(value == null)
					{
						alert("请选择正确的选项")
						return;
					}
					if(value!="no"&&value!=""){
							var vals = value.split(";");
							<#if retureContexts?exists>
							<#list retureContexts.keySet() as retureContext>
							<#assign mapUser="${retureContexts[retureContext]}" >
							openObject.document.getElementById('${(retureContext)?if_exists}').value = vals[${(mapUser)?if_exists}];
							</#list>
							</#if>
						}
				}
		if(parent != null)
			parent.window.close();
		else
			window.close();
//			openObject.document.getElementById('cmsLmLm.id').fireEvent('onchange');
	}
</script>
</head>
<body>
<!--<form name="form1" action="" method="post">-->
<div id="consultdata" class="contentscell">
<table id="frame1" width="100%" height="93%" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td width = "95%" align="left" valign="up">
		<div style="width:100%;height:100%;overflow:auto">
		<script language="javascript1.2">
			function getDT(){	
				var DT1 = new Date();
				return (DT1.getYear()+''+DT1.getMonth()+''+DT1.getDate() +''+ DT1.getTime()); 
			}
			var atree;
			var url = "${request.contextPath}/${treeUrl}";
			<!--单选-->
			atree = new WebFXLoadTree("栏目列表",url,false,false,"");
			document.write(atree);
		</script>
		</div>
	</td>
</tr>
</table>
</div>
<div align="right"><input id="addBtn" type="button" class="button" value="提 交" onclick="returnValue();"></div>
<!--</form>-->
<script language="javascript1.2">
<!--
	if(window.opener){
		//opener存在，说明是点击按钮打开的参照
		document.getElementById("addBtn").value="提 交";
	}else{
		//opener不存在，说明是内嵌在iframe中
		document.getElementById("addBtn").value="增 加";
		document.body.style.margin='0 0 0 0';
	}
-->		
</script>
</body>
</html>
</#escape>
